﻿using SlamDunk.ValueObjects.Enums;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Inputs
{
    /// <summary>
    /// 物料批次参数模型
    /// </summary>
    [DataContract]
    public class MaterialLotParam
    {
        /// <summary>
        /// 物料定义Id
        /// </summary>
        [DataMember]
        public Guid materialId;

        /// <summary>
        /// 供应商Id
        /// </summary>
        [DataMember]
        public Guid supplierId;

        /// <summary>
        /// 生产批号
        /// </summary>
        [DataMember]
        public string productionBatchNo;

        /// <summary>
        /// 生产日期
        /// </summary>
        [DataMember]
        public DateTime producedDate;

        /// <summary>
        /// 保质期
        /// </summary>
        [DataMember]
        public TimeSpan guaranteePeriod;

        /// <summary>
        /// 过期日期
        /// </summary>
        [DataMember]
        public DateTime expiredDate;

        /// <summary>
        /// 接收日期
        /// </summary>
        [DataMember]
        public DateTime receptionDate;

        /// <summary>
        /// 规格
        /// </summary>
        [DataMember]
        public string specification;

        /// <summary>
        /// 物料来源
        /// </summary>
        [DataMember]
        public MaterialSourceType materialSourceType;
    }
}
